import "./i18n/index"
import useDrawer from "./plugins/useDrawer"

import useContextmenu from "./plugins/useContextmenu"
import useGraph from "./plugins/useGraph"
import useApi from "./plugins/useApi"
import useMenu from "./plugins/useMenu"
import useNodelist from "./plugins/useNodelist"
import useMinimap from "./plugins/useMinimap"
import useToolbar from "./plugins/useToolbar"
import useMousePos from "./plugins/useMousePos"
import useLayout from "./plugins/useLayout"
import useLocal from "./plugins/useLocal"

export default class Main {
    constructor(key?:string){
        if(key){
            this.key = key;
        }
    }
    key = 'ANTV_X6_CONFIG_KEY'
    // 本地数据缓存模块
    local = useLocal();
    // 弹框模块
    
    // 接口层
    api = useApi();
    // 画布层
    graph = useGraph(this);
    //
    layout = useLayout(this)
    // 坐标测试
    mousepos = useMousePos(this)
    //
    minimap = useMinimap(this)
    // 抽屉弹框
    drawer = useDrawer(this)
    // 顶栏菜单
    menu = useMenu(this)
    // 节点列表
    nodelist = useNodelist(this)
    // 右键菜单
    contextmenu = useContextmenu(this)
    // 工具条模块
    toolbar = useToolbar(this)
}

